﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EP2_Gameserver
{
    public static class LogScreen
    {
        public static byte[] Info(string Msg)
        {
            //string Msg = "hallo";
            string datum = DateTime.Now.Day.ToString() + "-" + DateTime.Now.Month.ToString() + "-" + DateTime.Now.Year.ToString();
            string tijd = DateTime.Now.Hour.ToString() + ":" + DateTime.Now.Minute.ToString() + ":" + DateTime.Now.Second.ToString();
            Console.ForegroundColor = ConsoleColor.Gray;
            Console.Write("[" + datum + " " + tijd + "]");

            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.Write(" [INFO]");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" " + Msg);

            byte[] blah = { 0x00 };
            return blah;

        }

        public static byte[] Error(string Msg)
        {
            //string Msg = "hallo";
            string datum = DateTime.Now.Day.ToString() + "-" + DateTime.Now.Month.ToString() + "-" + DateTime.Now.Year.ToString();
            string tijd = DateTime.Now.Hour.ToString() + ":" + DateTime.Now.Minute.ToString() + ":" + DateTime.Now.Second.ToString();
            Console.ForegroundColor = ConsoleColor.Gray;
            Console.Write("[" + datum + " " + tijd + "]");

            Console.ForegroundColor = ConsoleColor.Red;
            Console.Write(" [ERROR]");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" " + Msg);

            byte[] blah = { 0x00 };
            return blah;

        }

        public static byte[] LoginFail()
        {
            byte[] pack = { 0x01, 0x1F };
            return pack;
        }
    }
}
